package com.xujl.mvcbind.ui.loading.control;

import android.os.Bundle;

import com.xujl.fastlib.base.BaseFragment;
import com.xujl.mvcbind.adapter.SplicingFragmentAdapter;
import com.xujl.mvcbind.ui.loading.model.SplicingFragmentModel;
import com.xujl.mvcbind.ui.loading.view.SplicingFragmentView;
import com.xujl.mvcbind.widget.list.AbsFragmentAdapter;

/**
 * <pre>
 *     author : j
 *     e-mail : com
 *     time   : 2019/11/10
 *     desc   : 拼接布局示例
 *     version: 1.0
 * </pre>
 */

public class SplicingFragmentControl extends BaseFragment<SplicingFragmentModel, SplicingFragmentView> {
    private AbsFragmentAdapter mAdapter;

    @Override
    public void init (Bundle savedInstanceState) {
        mAdapter = new SplicingFragmentAdapter(mModel.getData(), getChildFragmentManager());
        mView.setAdapter(mAdapter);
    }
}
